<template>
    <div>
        <a-row>
            <a-col :span="8" class="row">
                <a-card
                    class="hover_shadow"
                    :bordered="false"
                    style="width: 100%"
                >
                    <div class="user_info">
                        <img
                            class="user_avatar"
                            src="../../assets/logo.png"
                            alt=""
                        />
                        <div class="user_info_cont">
                            <div class="user_info_name">欢迎你,admin</div>
                            <div>超级管理员</div>
                        </div>
                    </div>
                    <div class="user_info_list">
                        上次登录时间:<span>2020-12-18</span>
                    </div>
                    <div class="user_info_list">
                        上次登录地点:<span>浙江省杭州市</span>
                    </div>
                </a-card>
                <a-card
                    class="hover_shadow"
                    title="技能详情"
                    :bordered="false"
                    style="width: 100%; margin-top: 20px"
                >
                    <div>
                        <span>Vue.js</span>
                        <a-progress :percent="78.5" status="active" />
                    </div>
                    <div>
                        <span>JavaScript</span>
                        <a-progress
                            strokeColor="rgb(66, 185, 131)"
                            :percent="68.4"
                            status="active"
                        />
                    </div>
                    <div>
                        <span>CSS</span>
                        <a-progress :percent="88.9" status="active" />
                    </div>
                    <div>
                        <span>HTML</span>
                        <a-progress
                            strokeColor="rgb(241, 224, 90)"
                            :percent="92.1"
                            status="active"
                        />
                    </div>
                    <div>
                        <span>React.js</span>
                        <a-progress
                            strokeColor="rgb(245, 108, 108)"
                            :percent="28.5"
                            status="active"
                        />
                    </div>
                </a-card>
            </a-col>
            <a-col :span="16" class="row">
                <a-row class="mb-4">
                    <a-col :span="8" class="row">
                        <div class="grid_content d-flex hover_shadow">
                            <div class="grid_icon"><a-icon type="user" /></div>
                            <div class="grid_right flex-1">
                                <div class="grid_right_num">1231</div>
                                <div>用户访问量</div>
                            </div>
                        </div>
                    </a-col>
                    <a-col :span="8" style="padding: 0 10px">
                        <div class="grid_content d-flex hover_shadow">
                            <div class="grid_icon"><a-icon type="user" /></div>
                            <div class="grid_right flex-1">
                                <div class="grid_right_num">1231</div>
                                <div>用户访问量</div>
                            </div>
                        </div>
                    </a-col>
                    <a-col :span="8" style="padding: 0 10px">
                        <div class="grid_content d-flex hover_shadow">
                            <div class="grid_icon"><a-icon type="user" /></div>
                            <div class="grid_right flex-1">
                                <div class="grid_right_num">1231</div>
                                <div>用户访问量</div>
                            </div>
                        </div>
                    </a-col>
                </a-row>
                <div
                    class="mx-2 hover_shadow"
                    style="height: 464px; background: #fff"
                >
                    <Charts style="height: 100%" :chartData="chartData1" />
                </div>
            </a-col>
        </a-row>
    </div>
</template>

<script>
import { mapState } from "vuex";
import Charts from "@/components/Manage/Charts/Charts";
export default {
    data() {
        return {
            chartData1: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],
        };
    },
    methods: {},
    computed: {
        ...mapState(["components"]),
    },
    mounted() {
        
    },
    components: { Charts },
};
</script>

<style lang="scss" scoped>

    .row {
        /* width: 100%;
        height: 100%; */
        padding: 0 10px;
    }
    .user_info {
        display: flex;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 2px solid #ccc;
        margin-bottom: 20px;
        .user_avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            overflow: hidden;
        }
        .user_info_cont {
            // display: flex;
            flex: 1;
            padding-left: 50px;
            color: #999;
            .user_info_name {
                font-size: 30px;
                color: #222;
            }
        }
    }
    .user_info_list {
        line-height: 30px;
        color: #999;
        span {
            padding-left: 50px;
        }
    }
    .grid_content {
        background: #fff;
        height: 100px;
        text-align: center;
        align-items: center;
        border-radius: 4px;
        .grid_icon {
            width: 100px;
            line-height: 100px;
            font-size: 50px;
            background: #2d8cf0;
            color: #fff;
            border-radius: 4px;
        }
        .grid_right {
            color: #999;
            .grid_right_num {
                font-size: 30px;
                font-weight: 700;
                color: #2d8cf0;
            }
        }
    }

.hover_shadow {
    transition: 0.3s;
    &:hover {
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
    }
}
</style>
